﻿namespace EggOfPanKu.DeckBuilder
{
    using System;
    using System.Collections.Generic;
    using System.Configuration;
    using System.Data;
    using System.Linq;
    using System.Windows;
	using WebPaigeDesign.Utilities;
    using EggOfPanKu.Library.Settings;
    using EggOfPanKu.Library.Infrastructure;
	
	
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
		private static Logger _log;

		public static Logger Log
		{
			get
			{
				if (App._log == null)
				{
					App._log = new Logger(ConfigManager.AppSettingsMgr.ApplicationName, ConfigManager.AppSettingsMgr.LogPath, ConfigManager.AppSettingsMgr.LogLevel, false);
#if DEBUG
					App.Log.SetMinimumLogLevel("DEBUG");
#endif
				}

				return App._log;
			}
		}



    }
}